From 79ce329d3d83defc3dda1ed1d07a4c1583467f08 Mon Sep 17 00:00:00 2001 From: Nicolas TORO Date: Tue, 4 Jun 2024 01:05:07 +0200 Subject: [PATCH] [~] Update the project files by the last version of the project --- .github/push.sh | 96 + docs/html/md_README.html | 9 + docs/html/myshell_8h_source.html | 6 +- docs/html/navtreedata.js | 7 +- docs/html/navtreeindex2.js | 4 +- docs/html/navtreeindex3.js | 4 +- docs/html/navtreeindex4.js | 1 + docs/html/search/all_10.js | 45 +- docs/html/search/all_14.js | 5 +- docs/html/search/all_17.js | 2 +- docs/html/search/all_1e.js | 2 +- docs/html/search/all_1f.js | 2 +- docs/html/search/all_20.js | 4 + docs/html/search/all_3.js | 2 +- docs/html/search/all_c.js | 5 +- docs/html/search/searchdata.js | 2 +- docs/index.html | 27 +- ...as.c.97591d0e170eb9478fe28eac0c56b415.html | 98 +- ...si.c.fe695734d77220bf3550a5dd8d96f15b.html | 24 +- ...rs.c.ef223a96dea64cc4e3fce90d2ce3c791.html | 198 +- ...ng.c.91a57cd91e854651fcf267949671479a.html | 2 +- ...ks.c.2c0b282ec356ad4757cf086544314d5e.html | 216 +- ...cd.c.4bcac222adf1edc143ed1c966948bdee.html | 140 +- ...nd.c.d26991ef13eb41283f88bf34125ef986.html | 230 +- ...on.c.964bb783e6f1a74b441cbae144dab882.html | 247 +- ...le.c.4a559d4edd82554487be350b248f2668.html | 46 +- ...ho.c.a237047750b62b50bb6b1e80bf0da858.html | 56 +- ...se.c.91ca356389a72f2f944c52945ad9911d.html | 105 +- ...nd.c.d50cb57a378f23c1a8ea3735265a1eaf.html | 2 +- ...if.c.8d4a5cc7ac1a390b0594ca1b52a5a0e3.html | 35 +- ...nv.c.0997ed7363418ceee1cc394801ca2318.html | 14 +- ...nt.c.193bbaa1884787bf2e12372e353c224d.html | 119 +- ...nt.c.b8359ca6ecd76e66d6e3f8fc59a5cdcb.html | 42 +- ...ec.c.d7361f890696d556076e4b41f16bd25d.html | 94 +- ...it.c.f381a37a8bb17c01a14e9f94a1a6eb8c.html | 204 +- ...at.c.1b604bd1753e1ce3ed09fd309d0ce63b.html | 172 +- ..._a.c.e8b7cc3ae9c42089ccbb2ba5d302180f.html | 2 +- ..._b.c.c1ce1a72628bd6d3766271a8065dcb5c.html | 2 +- ...ga.c.b99a874297925f82090c8860a5218959.html | 2 +- ...gd.c.0370315a2302f4261263cba6465abcda.html | 2 +- ...ge.c.341a0229b274477ed060262abcb802e7.html | 2 +- ...gf.c.ac404156d35679009904c7340fa609dc.html | 2 +- ...gg.c.8360e9887be8ba38399e01796771dba3.html | 2 +- ...gs.c.713a9916d565da3a348fa6b56a53dc67.html | 2 +- ...gx.c.ecf80047c8f34a858b25293c8d7e562c.html | 2 +- ..._c.c.4f4cd1efe8e68c84a7652427d46a12e2.html | 20 +- ..._d.c.dc607c54e3416e7847bd76139db77a00.html | 2 +- ..._e.c.60ef322a67042e787782ae5e7f212bae.html | 2 +- ..._f.c.4d4ca65e267041e5d1132434376ea63a.html | 2 +- ..._g.c.37303cc2d585e7de5d5c315ec37dfbfe.html | 2 +- ..._i.c.426b8aeab015b31bf3716a707257fd26.html | 2 +- ..._n.c.266ac5cef6c47fefc80b77ea67ae8471.html | 2 +- ..._o.c.b88368ae42f2ed6759a7e48cb448e2be.html | 2 +- ..._p.c.449eb070788b8b7ad9295d47c0a7950a.html | 2 +- ..._s.c.7ebc1f52a943fa7e953fce4e2a238909.html | 24 +- ..._u.c.266e62ea90c101b3e621e89ff31ca9f7.html | 2 +- ..._x.c.d2c94e5d9cfb0475d0c3b838903da909.html | 2 +- ...ch.c.bfb86972871348a1823863f1e10551b7.html | 114 +- ...ar.c.c7e2f023a87a890bee9259ea6c25d415.html | 26 +- ...le.c.5dce0c6f4f80edb878fde6124757d163.html | 2 +- ...nt.c.d2f1e4d2770f45ae52c264c1a1d3db9b.html | 2 +- ...tr.c.16793a1e851e2f7ab549c574d550d901.html | 26 +- ...as.c.e7348daeed1be9830c0018e72800012e.html | 9 +- ...ks.c.5580ab6678b83c71318ec586c0cdac48.html | 9 +- ...cd.c.dddfcd489509b0f08e42e54f6e1f4287.html | 65 +- ...ds.c.f293b3ffcb8c22eae13ba20644029b49.html | 9 +- ...nt.c.6defa6ccaac894c9e0ae74ea4278ff4e.html | 9 +- ...it.c.d3caad02f567e9882a420d19208d82de.html | 9 +- ...ng.c.3fda63a6400a1a5d00ff6b8ff832023c.html | 9 +- ...rs.c.f3cddfcaa1563ac3f56396ed30c88b50.html | 9 +- ...rs.c.47921d1bd312d2bb9caad2e668b647f4.html | 9 +- ...er.c.56c3bf9c3d88eab5b3f866c085837149.html | 9 +- ...es.c.ccbce252cdf432f3452382dcff2dfce8.html | 1483 +++++ ...ng.c.dbe28491ed55d8f4a7b4c55659ec914a.html | 9 +- ...es.c.732125a15b16e04c023d50bf4e291fb1.html | 9 +- ...ns.c.0f873adf336c491358e4f79bb55dd935.html | 9 +- ...at.c.f01aa4c3bd09bdd97d0032bdc586daf9.html | 9 +- ...ng.c.78b561c5530451afbe6115806435d971.html | 2577 +++++++++ ...es.c.2622c5eb7141eb7dc0d5a3855a1e5bc1.html | 4053 +++++++++++++ ...re.c.4ce3fcfb067346bd6936a571959936b5.html | 133 +- ...ch.c.0729562ef7353114c3cca4ce014f8672.html | 9 +- docs/tests/test.functions.html | 5044 +++++++++++------ ...at.c.64f6bacd753205ad41f857c0b2a651d7.html | 92 +- ...ry.c.dc2d2ba9cb700e652c5ce42b182afb8f.html | 233 +- ...ng.c.4a978d238cb6d83ae0c6a3a0f81bf324.html | 94 +- ...lp.c.42d69deb3ba95ee9aad399f3833d0d90.html | 2 +- ...ry.c.44f10d6e4ea9710a90b147cfb4b1e3c9.html | 2 +- ...le.c.2e538cbac6beb5dc2388ec1241668e49.html | 197 +- docs/tests/test.html | 420 +- ...if.c.6cd6c980e52953e88f69c391ad053401.html | 251 +- ...rs.c.df1ea527ab17cd91a4ab06747636dccf.html | 431 +- ...nd.c.8ead6212a150abaa58c546bfd19df477.html | 354 +- ...ns.c.3839a79fd7cd84d9b4ddb9d9ab8a5cfc.html | 148 +- ...ds.c.435bc1ca2c29eb4c9d844f4fc7ac4f50.html | 24 +- ...en.c.ff205ae027c59e741af1c85ebe8854e6.html | 22 +- ...oc.c.a3128bb91392bf1587da77f7995a2ae8.html | 36 +- ...is.c.da6c53e15fbc4409ea1ea0eb3d547d2a.html | 22 +- ...ha.c.3a53a0537a554fbd3948e4ee6af903c7.html | 34 +- ...um.c.7d4e67378ff27527869c3c992e26d9fb.html | 16 +- ...le.c.972b0830f5111ab391906fe2a7a89bb9.html | 2 +- ...ec.c.91087280afa661a9a0d9f93dd6891e99.html | 2 +- ...ec.c.e612f46463c39aa56a09e97ab00b12e2.html | 2 +- ..._t.c.54672d3b7faca0c2bd4c9b9fc98abcb8.html | 2 +- ...ot.c.2e856c5bf38fb17b92152194f9689c5f.html | 2 +- ...st.c.3315212e69f861c0a1ff15b4b864bbe1.html | 2 +- ...ms.c.040058f65509933302c865536c4501cc.html | 2 +- ...se.c.d6569ef0942bfc793508581c5a51aba2.html | 2 +- ..._t.c.f578f2b5880662b7134bfc4cd0a16118.html | 10 +- ...ed.c.5cf5b510a2fc5606824555eaf5fd5da5.html | 2 +- ...er.c.c5feb534b425880651b85a03027f560e.html | 24 +- ...st.c.a9ed3d0dffd178816d0aa751bfab7406.html | 68 +- ...st.c.df546e7235ee7cd8ad7b3fb0a286deaf.html | 42 +- ...es.c.623d4e1d10a0c6222bbf6d10b748fe76.html | 2 +- ...br.c.db0c8100cbcb2d38ddb1820712e01f5b.html | 2 +- ...de.c.68210d333c203c757ae6fcecb1d0ceef.html | 24 +- ...nf.c.8ebdbd957f51c3a272266dd3cbe8a26a.html | 2 +- ...up.c.7a9c89ffdf301fdad9df6fedad670856.html | 2 +- ...tf.c.d805da5af99245dd3183181148047478.html | 128 +- ...ee.c.d0397f64a6cfb6ad32ac72340dfbcc08.html | 14 +- ...ay.c.8d5c458c89ae860eb5e229d40d148a5e.html | 24 +- ...tr.c.698dd9713a1a908d3d8bdf7e780981a7.html | 22 +- ...ne.c.eb23389890da4af4ba93a36cd5f6e194.html | 138 +- ...br.c.fb6f62d79c78234de48d500773d0e770.html | 2 +- ...se.c.36b49068b9196903e121a26274fede8f.html | 2 +- ...at.c.c37c484aee737edb6e527ce6f529babf.html | 2 +- ...me.c.3d320b80935610c8eba5ef6d813a4103.html | 2 +- ...eg.c.b94cbe64437c49f5d750d09a68071dd5.html | 2 +- ...ze.c.9e3bd35d44103f9db413d3bab8dcb051.html | 18 +- ...ed.c.0cf3d59d2df6e13ae63b52fa96c10767.html | 22 +- ...oc.c.3bb302d8f49453f6d22617be6c19ba7f.html | 32 +- ...up.c.753bb56a03a2ba6891d4c4ce50f9d384.html | 28 +- ...ay.c.988498eae382640366f506a656bca8b6.html | 28 +- ...up.c.a8b729ddf242d6730bbada1a6945301f.html | 70 +- ...hr.c.911f2c105b149e2baf0d28d3b2da1ee0.html | 2 +- ...mp.c.4f9219b07b5b8e772c76491f55094271.html | 2 +- ...py.c.fa2b4cf6d7fa3212b35df23115b3326d.html | 2 +- ...ve.c.8a451db6c1f7dba0069be1a8224406e3.html | 2 +- ...et.c.1579c2dd27f617ae73c1d612e1165f47.html | 20 +- ...st.c.0ecde6a98d424dcfdfa6fff699e50a66.html | 2 +- ...ay.c.2cbb586ede7dcb1497dbcd860f45a23c.html | 2 +- ...st.c.6588940772be9d435ba253146d94fe9a.html | 2 +- ...ck.c.4bf32cf57047b541932d1b115ce7835f.html | 2 +- ...nt.c.3c689ac729b8f8fbfaf2db4d7bacf12f.html | 28 +- ...de.c.7713f1249391746c483a297b5fad48c1.html | 2 +- ...xt.c.a99c841bde0f10bbde56866245bb6c7a.html | 112 +- ...bn.c.8b49562c3e9c791c92094ba36a9ce03d.html | 2 +- ...ms.c.46c29a508af0a0ce7836c19285301506.html | 2 +- ...tf.c.7d970b91d3698916f54f4f6e8f2945e8.html | 128 +- ...ck.c.07f4bc9c0b14640a08ce2f38dca2faa4.html | 40 +- ...ed.c.57e5a656c095caa653c84495149c9f6d.html | 46 +- ...nt.c.a65fe6ec5b9d12b223d808b6c1e37808.html | 28 +- ...ar.c.0f7f3519d646bd24e0f54d3781c13898.html | 10 +- ...br.c.eed93e025c502e44f05ea46bb074d67c.html | 18 +- ...se.c.404ab7e6e9e397b8eb2d155cad145da0.html | 2 +- ...tr.c.74222b21e8f3ceb85fce4ad5dbc13971.html | 16 +- ...or.c.598b7b19cfddcbc2443f4c32e349e845.html | 14 +- ...fd.c.75abaa3657dc8cfe68a6612cbde8ccfd.html | 18 +- ...ee.c.fa210d0fe50dba8bed27a4776464d8a6.html | 2 +- ...ed.c.05882ede1543f346b50e4231df12ac35.html | 2 +- ...oc.c.0db2c6c4b7f7ca4398ab9a5627e670b0.html | 18 +- ...st.c.4b0bb92e476c7b547120878e571f87c5.html | 2 +- ...ms.c.5f284c58cd372fd5d537bd98e546ff64.html | 2 +- ...tr.c.6046926735914c935bcaf48c067d43a8.html | 22 +- ...tr.c.7f95ba8b37251dc54b17ea5da6e401a4.html | 2 +- ...ng.c.a8bd83c7ca18c72a1e1193cfbf99b232.html | 2 +- ...ay.c.08199d7abb3ff33f339487295c8766ab.html | 2 +- ...ay.c.e706fb3a3bbfbe171536cce45cf81a22.html | 24 +- ...em.c.d1ae10e555790e493d64128b00a901ce.html | 2 +- ...tr.c.9bf3d5c8fd61aa657cfc433c36966134.html | 2 +- ...ay.c.c2480d76217afaa40e202c6964f84b08.html | 2 +- ...st.c.3e443f449f4b8486126ebd32b402f681.html | 2 +- ...ms.c.20796b7b848fbc772cb8005af4c3db4b.html | 2 +- ...ns.c.90813a6295f53cd43b6de7a4ce94a94e.html | 48 +- ...is.c.4ce12645b0110e56838fd7b7d30f41d1.html | 22 +- ...ha.c.8760aa6cf5f80dd8fb64ce9049ffa288.html | 2 +- ...er.c.ed246fefafab9bcdda1dde5e472288f3.html | 2 +- ...um.c.1ac52f50e248c4691d0d0f7cc02b0c83.html | 2 +- ...le.c.e866336fc2de2c7c6061c83b13ee5b04.html | 2 +- ...er.c.64d8bb9a18a6137142b461015a4f2253.html | 2 +- ...br.c.95a95d0946dc56e5f3800cafa57764de.html | 54 +- ...nt.c.65a60b825ed3d915568175187fa3ce4b.html | 2 +- ...ed.c.4e3c56740ec8fa8b9ae47000e92f852e.html | 2 +- ...ng.c.842c43f6b6b331313e640c3e0174a88e.html | 2 +- ...rt.c.717b6eaaa12c560cdc6901e37e54aee4.html | 2 +- ...rt.c.2b44dbb97bcbf7490318430bbad9dec8.html | 2 +- ..._t.c.43d0df6c1ded45eeffe307ce375f3129.html | 2 +- ...ng.c.83afa9eaa7e035e9feecd5cbe69bb375.html | 2 +- ...rt.c.76a03bd63fe1f8e60ce3504d5c071876.html | 2 +- ...rt.c.013c019cabd6ca34e88b791ef053ed34.html | 2 +- ..._t.c.855cd697a3c3abbfc2e838dad2db6a8d.html | 2 +- ...ed.c.4e6aea0ac283e4d115a6f8e9c2107b2c.html | 2 +- ...ng.c.22b342f1cb2ecbc8bd3b761a4799eeef.html | 2 +- ...ay.c.20d41fe0cea8e702461cc0a2baa07b40.html | 2 +- ...ct.c.20ae1927efa310bad72bf25f066c6828.html | 168 +- ...ng.c.4824bb266645f426473a1975026f5860.html | 2 +- ...ze.c.61b3b141d419b3c3d58f5686a35d98cb.html | 2 +- ...at.c.ff73a6a2f293e527f8b393f2a455d28d.html | 34 +- ...mp.c.212cf9423a944ea72d8eb9c54c567e94.html | 58 +- ...py.c.5a4ac11d5519009baa95889e599c807c.html | 22 +- ...up.c.ccc77e397f82267c54c0bee67d90465c.html | 28 +- ...ay.c.6efa7de624e721d4ff30d5d95178309d.html | 2 +- ...or.c.3634694ec1a9a90840c221c61954204c.html | 2 +- ...br.c.fd478a4d1b268b9b164fc7e78e48e30e.html | 2 +- ...br.c.5cd623bb85d7ce090b053144425f9bd6.html | 2 +- ...at.c.794fa923ae978753b069418770a1a841.html | 2 +- ...en.c.3e98a93d933f72096e63483e24445b79.html | 26 +- ...se.c.33142be4e5ef9a8a30d5fac3d627fdb7.html | 2 +- ...at.c.d2df9c8d4d2dfa2fbe6f4e9ae5dedff1.html | 2 +- ...mp.c.e01fc3ec9dc6f89fa2a5c611913331f4.html | 50 +- ...py.c.c304a2d77e3acbaf91e5bfba568f6596.html | 22 +- ...up.c.7fc4a05917bebba9d0c388e5ac3573c3.html | 38 +- ...tr.c.4c1c4488c23c3fb0867bdaec4c31c13d.html | 32 +- ...se.c.7cddf10859dafaa3527728e1ecb65f20.html | 2 +- ...ay.c.13f27b70941be83d8cb6274f2e910054.html | 154 +- ...er.c.a8f960bda0040b00676422deb56fd701.html | 150 +- ...ap.c.883029a187b69387259d14e06c18c747.html | 2 +- ...rs.c.12b592facc0ed1d5535310102de3e052.html | 270 +- ...es.c.6e951b8a83723b3edfba86c33b0d5ff9.html | 400 +- ...ng.c.aa64509ed5ec085dcaeac1081cf0a4e6.html | 206 +- ...es.c.cf77fb9b5e7efa78bd5079f6a819aa2a.html | 290 +- ...le.c.6ca4e000ceda92083384094f9765bbe1.html | 2 +- ...nt.c.4bccce0d932a075aced470d3f12b5c5b.html | 2 +- ...pt.c.fb1ae213fce0dccdbffe80a24e38a421.html | 2 +- ...ns.c.f8ebcec97daeac686876cab9ae9938a2.html | 32 +- ...at.c.07a29b2b04113550737f87c097d5f3fd.html | 64 +- ...as.c.0673cb8ba7c81bb6495bd18cefaf9e21.html | 180 +- ...le.c.731d374002864e3bd0e61d62b9cb3425.html | 411 +- ...ns.c.fe856c480bf71e48f8baf252b383f9d4.html | 80 +- ...ng.c.792ebfd4581312e7344b1e48adad7f10.html | 18 +- ...et.c.44e93afa7e97b6436849b97ef582ccad.html | 336 +- ...nv.c.e59535aec01a3f9fb72ee20e179fd5ad.html | 204 +- ...ll.c.02843f066ee46e6ccf985e8162e774be.html | 78 +- ...ls.c.75dcdde0b93b7f3e0f4444cdfac71bef.html | 12 +- ...ce.c.daee6ddd7c88850e3446466dac3e716c.html | 44 +- ...se.c.198456ddb5ed251ceb0c07edcebe7619.html | 2 +- ...nt.c.8a044866e7816c5759d3404214d1284a.html | 2 +- ...ar.c.8ad8481f0ff57fbb5b91f674ccf12bd6.html | 2 +- ...le.c.b2958bfc2298a1265e0d695b6869aec6.html | 2 +- ...nt.c.61314eab375bd1bc63e7af3240f8f06d.html | 2 +- ...tr.c.d2b08c210d26d9081713a489ec503f19.html | 2 +- ...os.c.55ca27b7afc6d6a0d7a718dfb3a9616f.html | 12 +- ...ib.c.4f418da809c4bfae0950ba9a982ed18a.html | 2 +- ...tf.c.ca41461910305b53d8c3b4441da7aced.html | 2 +- ...ib.c.5efcead8c635a722c3a11f3ace08459a.html | 2 +- ...ib.c.305723241d69920aa744f76c340e9d25.html | 2 +- ...ld.c.411471a77984b34024d97c3c05d1dba1.html | 2 +- ...de.c.88cfbb3aefc189e7fa98b4fc4670b763.html | 34 +- ...le.c.46abe99b6d8eb488817ef50469dd5dbe.html | 2 +- ...as.c.c2825e056ca23a240ce28b66c2cbcef8.html | 87 +- ...et.c.cadb18fda01c89cb5669489fbe8fb4af.html | 90 +- ...nv.c.440da4b10013a2c7e2c5a7d8240d1a7e.html | 90 +- ...re.c.894d548fccefc9140a89f42a734df3be.html | 139 +- ...ch.c.9d32ad426e2521fe8a5fa6887c7ae849.html | 213 +- src/environnement.c | 3 +- src/history/history_file.c | 2 + tests/Makefile | 2 + tests/convert_all.sh | 8 +- tests/functional_test_alias.c | 1 - tests/functional_test_backticks.c | 1 - tests/functional_test_cd.c | 1 - tests/functional_test_commands.c | 1 - tests/functional_test_environnement.c | 1 - tests/functional_test_exit.c | 1 - tests/functional_test_globbing.c | 1 - tests/functional_test_inhibitors.c | 1 - tests/functional_test_multi_commands.c | 1 - tests/functional_test_operators.c | 1 - tests/functional_test_other.c | 1 - tests/functional_test_parentheses.c | 159 + tests/functional_test_parsing.c | 1 - tests/functional_test_pipes.c | 1 - tests/functional_test_redirections.c | 1 - tests/functional_test_repeat.c | 1 - tests/functional_test_scripting.c | 287 + tests/functional_test_variables.c | 446 ++ tests/functional_test_where.c | 1 - tests/functional_test_which.c | 1 - tests/parentheses | 527 ++ tests/test_files/environnement.ini | 16 +- tests/test_files/parentheses.ini | 24 +- tests/test_files/scripting.ini | 2 +- 281 files changed, 18631 insertions(+), 6842 deletions(-) create mode 100755 .github/push.sh create mode 100644 docs/html/search/all_20.js create mode 100644 docs/tests/test.functional_test_parentheses.c.ccbce252cdf432f3452382dcff2dfce8.html create mode 100644 docs/tests/test.functional_test_scripting.c.78b561c5530451afbe6115806435d971.html create mode 100644 docs/tests/test.functional_test_variables.c.2622c5eb7141eb7dc0d5a3855a1e5bc1.html create mode 100644 tests/functional_test_parentheses.c create mode 100644 tests/functional_test_scripting.c create mode 100644 tests/parentheses diff --git a/.github/push.sh b/.github/push.sh new file mode 100755 index 0000000..4fab49a --- /dev/null +++ b/.github/push.sh @@ -0,0 +1,96 @@ +#!/bin/bash + +# Executables +executables="42sh" + +# Couleur pour les messages +RED='\033[0;31m' +GREEN='\033[0;32m' +RESET='\033[0m' +BOLD='\033[1m' + +# Fonction pour compter les occurrences d'un mot dans un fichier +count_occurrences() { + local word=$1 + local file=$2 + grep -o -i -w "$word" "$file" | wc -l +} + +# Nom du fichier de résultat +file="plum_result.txt" + +# Exécution du coding style checker +plum > $file + +# Compter les occurrences de MAJOR, MINOR et INFO +major_count=$(count_occurrences "MAJOR" "$file") +minor_count=$(count_occurrences "MINOR" "$file") +info_count=$(count_occurrences "INFO" "$file") + +# Vérifier si le fichier contient plus de 2 occurrences de MAJOR, MINOR ou INFO +if [ $major_count -gt 2 ] || [ $minor_count -gt 2 ] || [ $info_count -gt 2 ]; then + cat $file + echo -e "${RED}${BOLD}${BOLD}INTERDICTION DE PUSH:${RED}${RED} Le fichier contient des erreurs de Coding-Style !$RESET" + rm -rf $file + exit 1 +else + echo -e "${GREEN}Aucune erreur de Coding-Style détecter.${RESET}" +fi + +# Supprimer le fichier de résultat +rm -rf $file + +# Tester la compilation +make >/dev/null 2>&1 & +pid=$! +wait $pid +if [ $? -ne 0 ]; then + echo -e "${RED}${BOLD}INTERDICTION DE PUSH:${RED} La compilation a échouée.${RESET}" + exit 1 +else + echo -e "${GREEN}La compilation s'est déroulée correctement.${RESET}" +fi + +# Tester +make clean >/dev/null 2>&1 & +pid=$! +wait $pid + +# Check la création de l'exécutable +.github/workflows/check_program_compilation $executables >/dev/null 2>&1 & +pid=$! +wait $pid +if [ $? -ne 0 ]; then + echo -e "${RED}${BOLD}INTERDICTION DE PUSH:${RED} Les executables n'ont pas été trouvé.${RESET}" + exit 1 +else + echo -e "${GREEN}Les executables ont bien été trouvé.${RESET}" +fi + +# Tester les unit tests +make tests_run >/dev/null 2>&1 & +pid=$! +wait $pid +if [ $? -ne 0 ]; then + echo -e "${RED}${BOLD}INTERDICTION DE PUSH:${RED} Les tests unitaires ont échoués.${RESET}" + exit 1 +else + echo -e "${GREEN}Les tests unitaires se sont déroulés correctement.${RESET}" +fi + +# Vérifier la taille du repository +make fclean >/dev/null 2>&1 & +pid=$! +wait $pid +size=$(du -sm --exclude='.git' | cut -f1) +limit=50 +if [ "$size" -gt "$limit" ]; then + echo -e "${RED}${BOLD}INTERDICTION DE PUSH:${RED} La taille du repository dépasse la limite autorisée ($size MB > $limit MB)${RESET}" + exit 1 +else + echo -e "${GREEN}La taille du repository est inférieure à la limite autorisée ($size MB < $limit MB)${RESET}" +fi + +# Push +echo -e "${GREEN}${BOLD}PUSH AUTORISÉ !${RESET}" +git push \ No newline at end of file diff --git a/docs/html/md_README.html b/docs/html/md_README.html index 7014479..bd14246 100644 --- a/docs/html/md_README.html +++ b/docs/html/md_README.html @@ -111,6 +111,7 @@

  • Compilation
  • Documentation
  • Code mandatory
  • +
  • What's next ?
  • Contributors
  • @@ -337,6 +338,14 @@

    Of course, in exceptional cases, we may depart from these rules.

    +What's next ? 🚀

    + +

    Contributors 👥

    For this project, we were a group of 5 people. Here are the people in the group: