nomoresecrets

Crown OTP test instructions for Ubuntu 22.04 LTS or newer

Mar 20th, 2024
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. On a fresh install of Ubuntu:
  2.  
  3. Download relevant programs and dependencies, and monkey-patch the test suite:
  4. Run in terminal:
  5. cd && wget https://mirror.dogado.de/eclipse/oomph/epp/2023-12/R/eclipse-inst-jre-linux64.tar.gz
  6. sudo apt install --yes openjdk-22-jdk-headless junit5 git
  7. git clone https://github.com/sophieschmieg/abca.git
  8. a="https"; b="pastebin"; c="com"; wget "${a}://${b}.${c}/raw/SFdWjEAk" -O ~/abca/src/test/java/fields/tests/CrownOTPTest.java
  9. tar xf eclipse-inst-jre-linux64.tar.gz && cd eclipse-installer/ && ./eclipse-inst
  10.  
  11. Install Eclipse:
  12. In Eclipse installer
  13. Select "Eclipse IDE for Java Developers"
  14. Press "INSTALL"
  15. Press "Accept Now"
  16. Wait for the installation to complete
  17. Press "Launch"
  18.  
  19. Launch Eclipse:
  20. Check the box next to "Use this as the default and do not ask again"
  21. Press "Launch"
  22. Close the welcome tab in Eclipse (and browser window for donations if it pops up)
  23.  
  24. Open the ABCA project in Eclipse:
  25. Go to File menu and press "Open Projects from File System..."
  26. On line that says "Import source", press "Directory..."
  27. Navigate to /home/<user>/abca, and press "Open"
  28. Press "Finish"
  29.  
  30. Configure the runtime environment:
  31. In bottom center under "Problems" tab
  32. Expand "Errors (2 items)"
  33. Right-click "Unbound classpath container", and select "Quick Fix"
  34. Select "Configure build path..." and press "Finish"
  35. In "Properties for ABCA"
  36. Under "Order and Export" tab
  37. Check the box next to "JUnit 5"
  38.  
  39. Change to "Libraries" tab, there
  40. Select the "JRE System Library [JavaSE-12] (unbound)"
  41. Press "Remove"
  42. Click on "Modulepath"
  43. Press "Add Library..."
  44.  
  45. In "Add Library" screen
  46. Select "JRE System Library"
  47. Press "Next"
  48. Select "Workspace default JRE (java-22-openjdk-amd64)"
  49. Press "Finish"
  50. Press "Apply and Close"
  51.  
  52. Open the IDE for Crown-OTP testing:
  53. Navigate with "Package Explorer" (on left side of the window) to
  54. ">ABCA [abca master]"
  55. -> "src/test/java"
  56. -> "fields.tests"
  57. Double-click on CrownOTPTest.java
  58.  
  59. Run the tests:
  60. Right-click line 20 that says "class CrownOTPTest {"
  61. Do not press, but hover mouse over "Run As"
  62. In the expanding pop-up menu, press "JUnit Test".
  63. See the Console below for the test suite output.
  64.  
Advertisement
Add Comment
Please, Sign In to add comment