[latex3-commits] [git/LaTeX3-latex3-latex3] master: Add some l3sys-shell tests (fdd595d)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Aug 24 20:19:30 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/fdd595dfcc3519d60f9c7c437bbde9585a6b0ce2
>---------------------------------------------------------------
commit fdd595dfcc3519d60f9c7c437bbde9585a6b0ce2
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Aug 24 19:19:30 2018 +0100
Add some l3sys-shell tests
>---------------------------------------------------------------
fdd595dfcc3519d60f9c7c437bbde9585a6b0ce2
l3experimental/l3sys-shell/build.lua | 3 +++
.../testfiles/m3sys-shell000.lvt} | 6 +-----
.../l3sys-shell/testfiles/m3sys-shell000.tlg | 4 ++--
.../testfiles/m3sys-shell001.lvt} | 8 ++------
.../l3sys-shell/testfiles/m3sys-shell001.tlg | 16 ++++++++++++++++
.../l3sys-shell/testfiles/m3sys-shell002.lvt | 19 +++++++++++++++++++
.../l3sys-shell/testfiles/m3sys-shell002.tlg | 11 +++++------
7 files changed, 48 insertions(+), 19 deletions(-)
diff --git a/l3experimental/l3sys-shell/build.lua b/l3experimental/l3sys-shell/build.lua
index 5c989d8..906c4dc 100644
--- a/l3experimental/l3sys-shell/build.lua
+++ b/l3experimental/l3sys-shell/build.lua
@@ -10,6 +10,9 @@ module = "l3sys-shell"
-- Location of main directory: use Unix-style path separators
maindir = "../.."
+-- We need shell-escape
+checkopts = "-interaction=nonstopmode --shell-escape"
+
-- Load the common build code
dofile(maindir .. "/build-config.lua")
diff --git a/l3experimental/l3draw/testfiles/m3draw000.lvt b/l3experimental/l3sys-shell/testfiles/m3sys-shell000.lvt
similarity index 74%
copy from l3experimental/l3draw/testfiles/m3draw000.lvt
copy to l3experimental/l3sys-shell/testfiles/m3sys-shell000.lvt
index 742d7b4..44a4b2a 100644
--- a/l3experimental/l3draw/testfiles/m3draw000.lvt
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell000.lvt
@@ -1,7 +1,3 @@
-%
-% Copyright (C) 2018 The LaTeX3 Project
-%
-
\documentclass{minimal}
\input{regression-test}
@@ -12,5 +8,5 @@
\START
\AUTHOR{Joseph Wright}
-\RequirePackage{l3draw}
+\RequirePackage{l3sys-shell}
\END
diff --git a/l3packages/l3keys2e/testfiles/m3keys2e000.tlg b/l3experimental/l3sys-shell/testfiles/m3sys-shell000.tlg
similarity index 74%
copy from l3packages/l3keys2e/testfiles/m3keys2e000.tlg
copy to l3experimental/l3sys-shell/testfiles/m3sys-shell000.tlg
index 3a9fab5..445da06 100644
--- a/l3packages/l3keys2e/testfiles/m3keys2e000.tlg
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell000.tlg
@@ -1,5 +1,5 @@
This is a generated file for the LaTeX (2e + expl3) validation system.
Don't change this file in any respect.
-Author: Bruno Le Floch
-(l3keys2e.sty
+Author: Joseph Wright
+(l3sys-shell.sty
)
diff --git a/l3experimental/l3draw/testfiles/m3draw000.lvt b/l3experimental/l3sys-shell/testfiles/m3sys-shell001.lvt
similarity index 56%
copy from l3experimental/l3draw/testfiles/m3draw000.lvt
copy to l3experimental/l3sys-shell/testfiles/m3sys-shell001.lvt
index 742d7b4..d649a98 100644
--- a/l3experimental/l3draw/testfiles/m3draw000.lvt
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell001.lvt
@@ -1,16 +1,12 @@
-%
-% Copyright (C) 2018 The LaTeX3 Project
-%
-
\documentclass{minimal}
\input{regression-test}
\RequirePackage[enable-debug]{expl3}
\ExplSyntaxOn
-\debug_on:n { check-declarations , deprecation }
+\debug_on:n { log-functions }
\ExplSyntaxOff
\START
\AUTHOR{Joseph Wright}
-\RequirePackage{l3draw}
+\RequirePackage{l3sys-shell}
\END
diff --git a/l3experimental/l3sys-shell/testfiles/m3sys-shell001.tlg b/l3experimental/l3sys-shell/testfiles/m3sys-shell001.tlg
new file mode 100644
index 0000000..ebcf331
--- /dev/null
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell001.tlg
@@ -0,0 +1,16 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Joseph Wright
+(l3sys-shell.sty
+Defining \__sys_path_to_win:n on line ...
+Defining \__sys_path_to_win:w on line ...
+Defining \__sys_path_to_win:N on line ...
+Defining \sys_shell_cp:nn on line ...
+Defining \sys_shell_mkdir:n on line ...
+Defining \sys_shell_mv:nn on line ...
+Defining \sys_shell_rm:n on line ...
+Defining \sys_shell_rmdir:n on line ...
+Defining \l__sys_tmp_tl on line ...
+Defining \sys_shell_get_pwd:N on line ...
+Defining \sys_shell_split_ls:nN on line ...
+)
diff --git a/l3experimental/l3sys-shell/testfiles/m3sys-shell002.lvt b/l3experimental/l3sys-shell/testfiles/m3sys-shell002.lvt
new file mode 100644
index 0000000..bf206d3
--- /dev/null
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell002.lvt
@@ -0,0 +1,19 @@
+\documentclass{minimal}
+\input{regression-test}
+
+\RequirePackage[enable-debug]{expl3}
+\RequirePackage{l3sys-shell}
+
+\ExplSyntaxOn
+
+\START
+
+\TEST { File~Listing }
+ {
+ \sys_shell_split_ls:nN { m3sys-shell002.* } \l_tmpa_seq
+ \seq_show:N \l_tmpa_seq
+ }
+
+\ExplSyntaxOff
+
+\END
\ No newline at end of file
diff --git a/l3kernel/testfiles/m3regex010.tlg b/l3experimental/l3sys-shell/testfiles/m3sys-shell002.tlg
similarity index 66%
copy from l3kernel/testfiles/m3regex010.tlg
copy to l3experimental/l3sys-shell/testfiles/m3sys-shell002.tlg
index 8b1ca91..07ff431 100644
--- a/l3kernel/testfiles/m3regex010.tlg
+++ b/l3experimental/l3sys-shell/testfiles/m3sys-shell002.tlg
@@ -1,13 +1,12 @@
This is a generated file for the LaTeX (2e + expl3) validation system.
Don't change this file in any respect.
-Author: Bruno Le Floch
============================================================
-TEST 1: LuaTeX bug which leads to an l3regex bug
+TEST 1: File Listing
============================================================
-> Compiled regex {\^^@\^^A}:
-+-branch
- char code 0
- char code 1.
+(|dir /b m3sys-shell002.*)
+The sequence \l_tmpa_seq contains the items (without outer braces):
+> {m3sys-shell002.log}
+> {m3sys-shell002.lvt}.
<recently read> }
l. ... }
============================================================
More information about the latex3-commits
mailing list