AutolabJS/AutolabJS

View on GitHub
docs/examples/unit_tests/test_cases/java/setup/Test3.sh

Summary

Maintainability
Test Coverage
#!/bin/bash
# All variables that are exported/imported are in upper case convention. They are:
#   TESTDIR : name of the test directory
#   LANGUAGE : language in which the student has submitted an evaluation request
#copy all the files under test from "student_solution/" and support files from "author_solution/"
#copy all source files first

cp -f student_solution/java/Buyer.java working_dir/
cp -f student_solution/java/Seller.java working_dir/
cp -rf author_solution/java/lib working_dir/

#copy the test file
cp -f "$TESTDIR"/"$LANGUAGE"/tests/AbstractTest.java working_dir/
cp -f "$TESTDIR"/"$LANGUAGE"/tests/Test3.java working_dir/Test.java
cp -f "$TESTDIR"/"$LANGUAGE"/tests/BuyerTest.java working_dir/