Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove header from expected result in tests #8

Merged
merged 1 commit into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions tests/Pierre_Rabhi_Vers_la_sobriete_heureuse.expected
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
(C)2003-2021 J. Lemmens
Daisy-player - Version 13.0
A parser to play Daisy CD's with Linux
Scanning for a Daisy CD...

SPINE (61):
1: Pierre_Rabhi_Vers_la_sobriete_heureuse/speechgen0002.smil#tcp70
2: Pierre_Rabhi_Vers_la_sobriete_heureuse/speechgen0003.smil#tcp78
Expand Down
5 changes: 0 additions & 5 deletions tests/S07241.expected
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
(C)2003-2021 J. Lemmens
Daisy-player - Version 13.0
A parser to play Daisy CD's with Linux
Scanning for a Daisy CD...

SPINE (42):
1: S07241/001_Le_Petit_Prince.smil#par_001_Le_Petit_Prince_0_0
2: S07241/002_Quatrieme_de_couverture.smil#par_002_Quatrieme_de_couverture_0_0
Expand Down
5 changes: 0 additions & 5 deletions tests/Six_points_de_lumiere.expected
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
(C)2003-2021 J. Lemmens
Daisy-player - Version 13.0
A parser to play Daisy CD's with Linux
Scanning for a Daisy CD...

SPINE (22):
1: Six_points_de_lumiere/rjyt0002.smil#rjyt_0001
2: Six_points_de_lumiere/rjyt0013.smil#rjyt_0012
Expand Down
5 changes: 0 additions & 5 deletions tests/Y9621.expected
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
(C)2003-2021 J. Lemmens
Daisy-player - Version 13.0
A parser to play Daisy CD's with Linux
Scanning for a Daisy CD...

SPINE (33):
1: Y9621/wkds0001.smil#aloj_0002
2: Y9621/wkds0002.smil#aloj_0002
Expand Down
9 changes: 8 additions & 1 deletion tests/run1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ input="${expected%.*}"
sed_safe_abs_srcdir=$(printf %s "${abs_srcdir}" | sed 's%[].\[*]%\\\0%g')

# run daisy-player -D
"$1" -D "$input" | sed "s%${sed_safe_abs_srcdir}%%g;s%/[.]/%%" > "$actual"
"$1" -D "$input" | sed "
# strip the header
1,5d
# remove the source dir part of the path
s%${sed_safe_abs_srcdir}%%g
# sanitize path
s%/[.]/%%
" > "$actual"

# compare the result with the expectations
$generate || diff -u "$expected" "$actual"
Loading