Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How we test the install process for gintro #210

Open
StefanSalewski opened this issue Dec 23, 2022 · 0 comments
Open

How we test the install process for gintro #210

StefanSalewski opened this issue Dec 23, 2022 · 0 comments

Comments

@StefanSalewski
Copy link
Owner

As no one has asked for it in the last 8 years, here is a short description how we test the bindings generation. A plain "nimble install gintro@#head" works not very good for displaying a useful issue description, so we create a separate directory for manually testing. Creating this directory is basically executing the script

#cat ~/gintro/prepairtest.sh 
cd
#git clone https://github.com/stefansalewski/gintro.git
mkdir gintrotest
mkdir gintrotest/test
cd gintrotest/test
mkdir nim_gi
cp ~/gintro/tests/* .
wget https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gobject.nim -O gobject.nim
wget https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/glib.nim -O glib.nim
wget https://raw.githubusercontent.com/StefanSalewski/oldgtk3/master/oldgtk3/gir.nim -O gir.nim

# nim c gen.nim
# ./gen # gtk3 -- for latest version, we have to generate gtk3 files first!
# ./gen 1 # gtk4 

We need the 3 files from oldgtk3 for bootstrapping, and a local directory nim_gi, where the binding modules are stored. We compile the gen.nim generator script, and execute it with "./gen" to generate the GTK3 bindings first, then with "./gen 1" to generate the GTK4 bindings. Order is important for latest gintro version, as the GTK3 generation process now tests for libsoup/libnice interaction, and stores the test result in a local file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant