Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
comp2212-cw-2021
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PLC
comp2212-cw-2021
Commits
f64e8467
Commit
f64e8467
authored
3 years ago
by
pm3g19
Browse files
Options
Downloads
Patches
Plain Diff
Removed test file from VCS
parent
507884c3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test.sh
+0
-19
0 additions, 19 deletions
test.sh
with
0 additions
and
19 deletions
test.sh
deleted
100755 → 0
+
0
−
19
View file @
507884c3
#!/bin/sh
PROBLEM
=
$1
INPUT
=
$2
TESTCASES
=
~/dev/plc/testCases
EXEC_DIR
=
~/dev/plc
cd
$TESTCASES
/pr
$PROBLEM
/inputs/input
$INPUT
echo
"Expected:"
EXP
=
$(
cat
$TESTCASES
/pr
$PROBLEM
/expected/exp
$INPUT
.txt
)
cat
$TESTCASES
/pr
$PROBLEM
/expected/exp
$INPUT
.txt
echo
"Got:"
GOT
=
$(
$EXEC_DIR
/csvql
$EXEC_DIR
/pr
$PROBLEM
.cql
)
$EXEC_DIR
/csvql
$EXEC_DIR
/pr
$PROBLEM
.cql
if
[
"
$EXP
"
=
"
$GOT
"
]
;
then
echo
"Test passed"
else
echo
"Test failed"
fi
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment