Skip to content

Commit

Permalink
Hide test case and cleanroom files for stage-0
Browse files Browse the repository at this point in the history
  • Loading branch information
ntoster committed Nov 16, 2021
1 parent 56d45f7 commit 72c29f5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,20 +237,6 @@ function testIt {
cp ${studentsource} "${testdir}"/ || die "failed"
popd > /dev/null

info "- copy cleanroom sources"
mkdir cleanroom || die "failed"
pushd ../cleanroom > /dev/null || die "failed"
cp ${studentsource} "${testdir}"/cleanroom || die "failed"
popd > /dev/null

info "- copy test sources"
pushd ../junit > /dev/null || die "failed"
cp ${testclass}.java "${testdir}"/ || die "failed"
if [ "x$secretclass" != "x" ]; then
cp ${secretclass}.java "${testdir}"/ || die "failed"
fi
popd > /dev/null

if [ "x${interfaces}" != "x" ]; then
info "- copy interfaces"
if [ -r ../interfaces ]; then
Expand All @@ -267,6 +253,20 @@ function testIt {
( make compile-stage0 ) > comp0 2>&1
checkexit $? "\nstudent result: ☠\n" comp0

info "- copy cleanroom sources"
mkdir cleanroom || die "failed"
pushd ../cleanroom > /dev/null || die "failed"
cp ${studentsource} "${testdir}"/cleanroom || die "failed"
popd > /dev/null

info "- copy test sources"
pushd ../junit > /dev/null || die "failed"
cp ${testclass}.java "${testdir}"/ || die "failed"
if [ "x$secretclass" != "x" ]; then
cp ${secretclass}.java "${testdir}"/ || die "failed"
fi
popd > /dev/null

info "\nstage1 (with public test case)"
info "- compiling"
( make compile-stage1 ) > comp1.out 2> comp1.err
Expand Down

0 comments on commit 72c29f5

Please sign in to comment.