Debian Codegraph @

test-suite/misc/coq_makefile_destination_of.sh

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 #!/usr/bin/bashscip-shell filesystem . . `/usr/bin/bash`.
2
3 export COQBIN=$BIN
4 export PATH=$COQBIN:$PATH
5
6 TMP=`mktempscip-shell system . . mktemp. -d`
7 cd $TMP
8
9 function assert_eqscip-shell shell shell-project 0.0.0 assert_eq().() {
10 if [scip-shell system . . `[`. "$1" != "$2" ]; then
11 echoscip-shell system . . echo. "rocq makefile generates destination $1 != $2"
12 cd /scip-shell filesystem . . `/`.
13 rmscip-shell system . . rm. -rf "$TMP"
14 exit 1
15 fi
16 }
17
18 assert_eqscip-shell shell shell-project 0.0.0 assert_eq(). `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
19 mkdirscip-shell system . . mkdir. src
20 assert_eqscip-shell shell shell-project 0.0.0 assert_eq(). `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
21 mkdirscip-shell system . . mkdir. -p src/Y/Z
22 touchscip-shell system . . touch. src/Y/Z/Test.v
23 assert_eqscip-shell shell shell-project 0.0.0 assert_eq(). `rocq makefile -destination-of src/Y/Z/Test.v -Q src X` "X//Y/Z"
24 cd /scip-shell filesystem . . `/`.
25 rmscip-shell system . . rm. -rf "$TMP"
26 exit 0