Commit Graph

8 Commits

Author SHA1 Message Date
Panu Matilainen c9751adb32 Add a test-case for nested macro expansion in a name, currently broken
- The stricter macro substitution syntax introduced in commit
  c22d5b1299 make this case illegal
  whereas it previously worked. AFAICS macros relying on the former
  behavior exist, so it probably needs to be restored one way or
  the other.
2013-04-26 11:31:59 +03:00
Panu Matilainen ac99b7c7e8 Run all rpmmacro tests under fakechroot 2011-04-01 17:07:52 +03:00
Panu Matilainen f8752d2ca3 Basic protection against Lua os.exit() and posix.exec() (ticket #167)
- Track posix.fork() and only allow exit() and exec() if the script
  has forked. There are other questionable items in posix extensions
  too but these are the worst offenders.
- Using Lua registry for tracking forked status might be more Lua-way
  option but this'll do for now.
2010-11-15 09:49:14 +02:00
Panu Matilainen 53b14ecfea Add keywords to all tests
- just initial groupings to have something there..
2008-11-22 14:07:34 +02:00
Panu Matilainen d3d3454a47 Add basic tests for Lua's rpm and posix extensions 2008-11-22 13:45:17 +02:00
Panu Matilainen 4ba4e709ef Add banners for nicer test output 2008-11-22 13:26:43 +02:00
Panu Matilainen 19a41acb84 A few more basic macro functionality tests 2008-11-22 13:20:33 +02:00
Panu Matilainen 1c57e1d337 Add some (trivial) macro evaluation tests 2008-11-22 11:22:01 +02:00