view test/callback_suite/make-signatures.lua @ 525:cc607f753178

- callback_suite_aggrs: added some cases that failed and/or are still failing to design.txt, as they showcase more subtle things like structs right on the reg-stack split, alignment issues, etc.
author Tassilo Philipp
date Wed, 13 Apr 2022 15:55:50 +0200
parents f8856e29b512
children
line wrap: on
line source

require "config"
require "math"
require "string"


function randomSignatures()
  package.path = '../common/?.lua;' .. package.path
  require"rand-sig"
end


function orderedSignatures()
  package.path = '../common/?.lua;' .. package.path
  require"ordered-sig"
end


function designedSignatures()
 for line in io.lines(designfile) do
   io.write( line )
   io.write( "\n" )
 end
end


if mode == "random" then
  randomSignatures()
elseif mode == "ordered" then
  orderedSignatures()
elseif mode == "designed" then
  designedSignatures()
else
  error("'mode' must be 'random', 'ordered' or 'designed'")
end

io.flush()