File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 28
28
# VHS testing stuff
29
29
out.gif
30
30
tests /tmp
31
+
32
+ # # Dynamically generated
33
+ tests /test_dir
Original file line number Diff line number Diff line change @@ -175,6 +175,49 @@ alias c := cross
175
175
# Integration testing #
176
176
#---------------------#
177
177
178
+ alias gen := gen_test_dir
179
+
180
+ test_dir := " tests/test_dir"
181
+
182
+ gen_test_dir :
183
+ #!/usr/bin/env bash
184
+ rm {{ test_dir}} -r;
185
+ mkdir -p {{ test_dir}}
186
+ cd {{ test_dir}} ;
187
+
188
+ # BEGIN grid
189
+ mkdir -p grid
190
+ cd grid
191
+
192
+ mkdir $(seq -w 001 1000 );
193
+ seq 0001 1000 | split -l 1 -a 3 -d - file_
194
+
195
+ # Set time to unix epoch
196
+ touch --date=@0 *;
197
+
198
+ cd ..
199
+
200
+ # END grid
201
+
202
+ # BEGIN git
203
+
204
+ mkdir -p git
205
+ cd git
206
+
207
+ mkdir $(seq -w 001 10 );
208
+ for f in ./ *
209
+ do
210
+ cd $f
211
+ git init
212
+ seq 01 10 | split -l 1 -a 3 -d - file_
213
+ cd ..
214
+ done
215
+
216
+ cd ..
217
+
218
+ # END git
219
+ eza -l --grid;
220
+
178
221
# Runs integration tests in nix sandbox
179
222
#
180
223
# Required nix, likely won't work on windows.
You can’t perform that action at this time.
0 commit comments