Skip to content

Commit

Permalink
Test shell escape variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ralismark committed Apr 11, 2021
1 parent 481e807 commit 904877a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/tex-outputs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ fn prim_filesize() {
TestCase::new("prim_filesize").go()
}

#[test]
fn shell_escape() {
let mut unstables = UnstableOptions::default();
unstables.shell_escape = true;
TestCase::new("shell_escape")
.with_unstables(unstables)
.check_pdf(true)
.go()
}

#[test]
fn tex_logo() {
TestCase::new("tex_logo").go()
Expand Down
3 changes: 3 additions & 0 deletions tests/tex-outputs/shell_escape.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**
(shell_escape.tex [1] )
Output written on shell_escape.xdv (1 page, 252 bytes).
Binary file added tests/tex-outputs/shell_escape.pdf
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/tex-outputs/shell_escape.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
shellescape: \ifx\shellescape\undefined
undefined
\else
\ifcase\shellescape
0 \or
1 \or
2 \fi
\fi

ifeof18: \ifeof18 1 \else 0 \fi

\bye
Binary file added tests/tex-outputs/shell_escape.xdv
Binary file not shown.

0 comments on commit 904877a

Please sign in to comment.