annotate tests/test_resources.nim @ 858:869cecde0a22

fix: bad way to do build config
author Sam <sam@basx.dev>
date Tue, 26 Dec 2023 21:12:14 +0700
parents 275ac4cdf7e0
children 1ab09f8cc68d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
696
275ac4cdf7e0 did: replace zippy with "standard" nim zip, compiled from source, fix some errors
Sam <sam@basx.dev>
parents: 674
diff changeset
1 import std/streams
668
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
2
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
3 import semicongine
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
4
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
5 proc main() =
674
496b328faa43 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 668
diff changeset
6 echo "Mods available: ", modList()
496b328faa43 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 668
diff changeset
7 for modName in modList():
496b328faa43 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 668
diff changeset
8 echo modName, ":"
496b328faa43 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 668
diff changeset
9 selectedMod = modName
496b328faa43 add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents: 668
diff changeset
10 for i in walkResources():
696
275ac4cdf7e0 did: replace zippy with "standard" nim zip, compiled from source, fix some errors
Sam <sam@basx.dev>
parents: 674
diff changeset
11 echo " ", i, ": ", loadResource(i).readAll().len
668
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
12
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
13 when isMainModule:
a02d503ffa53 add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff changeset
14 main()