Skip to content

Commit

Permalink
tests: unbork
Browse files Browse the repository at this point in the history
Many of the tests were broken from expecting a specific ~~version~~ commit hash
string in the command output (the $Id$ stuff).
Another was broken by a new argument added by void.
  • Loading branch information
0x5c committed Apr 4, 2023
1 parent fd3fd32 commit 2f3c4f4
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 26 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ src/utmpset
# Generated completions
sv.bash
sv.zsh

# Test output
src/*.local
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ install: all
done

clean:
rm -f *.o *.a $(PROGS)
rm -f *.o *.a $(PROGS) *.local

runit: runit.o unix.a byte.a
@printf " [CCLD]\t\t$@\n"
Expand Down
2 changes: 0 additions & 2 deletions src/chpst.check
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ rm -rf "${ctmp}"

chpst
echo $?
chpst -V
echo $?

# -u
# -U
Expand Down
6 changes: 1 addition & 5 deletions src/chpst.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog

100
$Id: f279d44141c981dd7535a12260efcf1ef7beed26 $
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog
usage: chpst [-vP012] [-u user[:group]] [-U user[:group]] [-b argv0] [-e dir] [-/ root] [-C pwd] [-n nice] [-l|-L lock] [-m n] [-d n] [-o n] [-p n] [-f n] [-c n] prog

100
test=1
Expand Down
2 changes: 0 additions & 2 deletions src/sv.check
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ trap 'rm -rf "${ctmp}"' EXIT

sv
echo $?
sv -V
echo $?

mkdir "${ctmp}"
cat >"${ctmp}"/run <<-\EOT
Expand Down
4 changes: 0 additions & 4 deletions src/sv.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
usage: sv [-v] [-w sec] command service ...

100
$Id: 900314260c6d52c986c5357673bea2f3bd3f4698 $
usage: sv [-v] [-w sec] command service ...

100
starting
0
Expand Down
2 changes: 0 additions & 2 deletions src/svlogd.check
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ rm -rf "${ctmp}"

svlogd
echo $?
svlogd -V
echo $?

mkdir "${ctmp}"
echo foo |svlogd "${ctmp}"
Expand Down
4 changes: 0 additions & 4 deletions src/svlogd.dist
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
usage: svlogd [-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir ...

111
$Id: 5e55a90e0a1b35ec47fed3021453c50675ea1117 $
usage: svlogd [-ttv] [-r c] [-R abc] [-l len] [-b buflen] dir ...

111
0
foo
Expand Down
2 changes: 0 additions & 2 deletions src/utmpset.check
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/bin/sh
utmpset
echo $?
utmpset -V
echo $?
4 changes: 0 additions & 4 deletions src/utmpset.dist
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
usage: utmpset [-w] line

1
$Id: cb399098f794012a7f5e6a3a7090b2d53b86c08c $
usage: utmpset [-w] line

1

0 comments on commit 2f3c4f4

Please sign in to comment.